Implementing common char count in C for 2 strings but receiving vastly different char count for th